package com.company.site.mode.wechatuser;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Date;

public class WechatUser {
	private Long id;
	private String username; 		// 用户名
	private String password;		// 密码
	private String name;			// 真实姓名
	private Integer sex;			// 性别  1:男 2:女
	private Integer age;			// 年龄
	private Integer cardType;		// 证件类型1:身份证 2:台胞证 3:护照
	private String idcard;			// 证件号码
	private String address;			// 家庭住址
	private Integer household;		// 所属户藉1:苏州户籍居民 2:非苏州户籍居民 3:港澳台居民 4:境外居民
	private Integer degree;			// 最高学历1:高中 2:专科 3:本科 4:研究生 9:其他
	private String mobile;			// 手机号码
	private String email;			// 邮箱
	private String company;			// 单位
	private String openid;			// 微信openid
	private String nickname;		// 微信昵称
	private String city;			// 所在城市
	private String country;			// 所在国家
	private String province;		// 所在省份
	private String language;		// 语言
	private String headimgurl;		// 头像图片
	private long subscribe_time;	// 关注微信号时间
	private Date bindTime;			// 微信绑定时间
	private Integer isRegister;		// 是否已经注册 1：是 0 否
	private Date regTime; 			// 注册时间
	private Integer subscribe;	 	// 是否是微信关注用户
	private String memo;			// 备注
	
	private Date lastVotedTime;
	private Long votedPlayer;
	private Integer votedCount;
	
	
	public Date getLastVotedTime() {
		return lastVotedTime;
	}
	public void setLastVotedTime(Date lastVotedTime) {
		this.lastVotedTime = lastVotedTime;
	}
	public Long getVotedPlayer() {
		return votedPlayer;
	}
	public void setVotedPlayer(Long votedPlayer) {
		this.votedPlayer = votedPlayer;
	}
	public Integer getVotedCount() {
		return votedCount;
	}
	public void setVotedCount(Integer votedCount) {
		this.votedCount = votedCount;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Integer getCardType() {
		return cardType;
	}
	public void setCardType(Integer cardType) {
		this.cardType = cardType;
	}
	public String getIdcard() {
		return idcard;
	}
	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Integer getHousehold() {
		return household;
	}
	public void setHousehold(Integer household) {
		this.household = household;
	}
	public Integer getDegree() {
		return degree;
	}
	public void setDegree(Integer degree) {
		this.degree = degree;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getNickname() throws UnsupportedEncodingException {
		return URLDecoder.decode(nickname, "utf-8");
	}
	public void setNickname(String nickname) throws UnsupportedEncodingException {
		this.nickname = URLEncoder.encode(nickname, "utf-8");
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public String getHeadimgurl() {
		return headimgurl;
	}
	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}
	public long getSubscribe_time() {
		return subscribe_time;
	}
	public void setSubscribe_time(long subscribe_time) {
		this.subscribe_time = subscribe_time;
	}
	public Date getBindTime() {
		return bindTime;
	}
	public void setBindTime(Date bindTime) {
		this.bindTime = bindTime;
	}
	public Integer getIsRegister() {
		return isRegister;
	}
	public void setIsRegister(Integer isRegister) {
		this.isRegister = isRegister;
	}
	public Date getRegTime() {
		return regTime;
	}
	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}
	public Integer getSubscribe() {
		return subscribe;
	}
	public void setSubscribe(Integer subscribe) {
		this.subscribe = subscribe;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	
	
}
